
<h1>Seasons</h1>


<cfoutput>
	<h3>#linkTo(text="Create New", action="new")#</h3>
</cfoutput>

<cfif seasons.recordCount>
<p>or</p>

<p>
	Select existing season...
</p>

<table>
	<tr>
		<th>Season</th>
		<th>Rounds</th>
		<th>Teams</th>
		<th>Start Date</th>
		<th>End Date</th>
		<th>Fixture</th>
		<th>Created</th>
		<th colspan="3">Actions</th>
	</tr>
	<cfloop query="seasons" startrow="1" endrow="#seasons.recordCount#">
	<cfoutput>
	<tr>
		<td>#seasonName# (#seasonid#)</td>
		<td>#noRounds#</td>
		<td>#noTeams#</td>
		<td>#StartDate#</td>
		<td>#EndDate#</td>
		<td>#FixtureCreated#</td>
		<td>#DateFormat(created, 'long')#</td>
		<td>
			#linkTo(text='Show', action='show', key=seasonid)#
		</td>
		<td>
			#linkTo(text='Edit', action='edit', key=seasonid)#
		</td>
		<td>
			#linkTo(text='Delete', action='delete', key=seasonid, confirm='Are you sure?')#
		</td>
	</tr>
	</cfoutput>
	</cfloop>
</table>

</cfif>